package org.example.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Orderdetail implements Serializable {
    private static final long serialVersionUID = 1L; //完成序列化操作
    @TableId(type = IdType.AUTO,value = "item_id")
    private Integer item_id;//订单商品id
    @TableField(value = "order_id")
    private Integer order_id;//订单id
    @TableField(value = "product_id")
    private Integer product_id;//商品id
    @TableField(value = "count")
    private Integer count;//数量
    @TableField(value = "current_price")
    private Double current_price;//当前单价

}
